home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / etman.lha / man / mann / macro.Bool.n < prev    next >
Text File  |  1991-10-24  |  702b  |  43 lines

  1.  
  2.  
  3. .SH MACRO NAME
  4. \fBBool(
  5. bool boolVariable)
  6. .SH DESCRIPTION
  7. \fBBool\fP converts integer variables to variables of type \fBbool\fP. This is used in the \fImethod Object::ReadFrom\fP to read the values of boolean variables from C++ streams. For example:
  8. .na
  9. .nf
  10.  
  11. istream& MyClass::ReadFrom(istream& is)
  12. {
  13.     bool b;
  14.     return is \>\> Bool(b);
  15. }
  16.  
  17.  
  18. .ad b
  19. .fi
  20. See also \fImacro Enum\fP.
  21. macro \fBBool\fP is sometimesused.
  22. .SH ARGUMENTS
  23. .TP
  24. \fBbool boolVariable
  25. .br
  26. a variable of type \fBbool\fP
  27. .SH CATEGORIES
  28.  
  29. .na
  30. inputoutput
  31. .ad b
  32.  
  33. .SH FILES
  34. .PD 0
  35. .TP 20
  36. declaration:
  37. \fBTypes.h
  38. .SH HISTORY
  39. joe@csesbg.at    Mon Jun 17 19:47 1991    reworked
  40. .br
  41. joe@csesbg.at    Wed Jun 19 18:24 1991    added IsKindOf, Guard
  42. .br
  43.